package com.dsy.agent;

public interface Agent {
    Integer AGENT_STATE_FREE = 1;
    Integer AGENT_STATE_BUSY = 2;
    Integer AGENT_STATE_FINISH = 3;
    Integer AGENT_STATE_ERROR = 4;

    /**
     * 执行任务
     *
     * @param task 用户的任务
     * @return 执行结果
     */
    String executeTask(String task) throws InterruptedException;
}
